home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS21.ADF / ExtraHalfBright / ExtraHalfBright.DOC < prev    next >
Text File  |  1989-01-27  |  4KB  |  79 lines

  1.  
  2. TITLE:  Extra Half Bright mode
  3.  
  4. There are lots of fun things you can do in 6 bit planes on the Amiga,
  5. including Hold and Modify color displays and dual-playfield mode with two
  6. separately scroll-able, completely independent, 8 color playfields with
  7. overlay and transparency.
  8.  
  9. But tonight I'm going to discuss something you don't already know about
  10. your Amiga -- even if you've read all the tech manuals cover to cover.
  11.  
  12. The specs for the Amiga say that in a completely static, low-resolution
  13. display, with nothing fancy going on (like Hold and Modify), you can
  14. display up to 32 colors simultaneously out of a pallette of 4096. Well not
  15. quite.  You can actually display up to 64 distinct colors out of that
  16. pallette of 4096! Have I got your attention?  Welcome to Extra-Half-Brite
  17. mode.
  18.  
  19. The Amiga display hardware automatically enters Extra-Half-Brite mode
  20. whenever you select a 6 plane display (which must be low res due to the
  21. hardware) and have NOT selected either Hold and Modify or Dual Playfield
  22. mode.
  23.  
  24. The graphics kernel software further enforces the rule that you must set
  25. the EXTRA_HALFBRITE flag in the ViewModes for the ViewPort (Screen in
  26. Intution lingo) or it will automatically trim your screen down to 5 planes.
  27. This is done both for backward compatability and to insure support in
  28. future Amiga architectures.
  29.  
  30. Consider the playfield data bits for a given pixel.  The bits from the
  31. first five planes form a color register selector for that pixel, allowing
  32. you to choose among the 32 color registers in the Amiga.  The bit from the
  33. sixth plane is interpreted as follows:
  34.  
  35.   0 -- Use the color in the selected color register just as specified.
  36.  
  37.   1 -- Take the color in the selected color register, shift each of its R,
  38. G, and B components right one bit, and use the new color value thus formed.
  39.  
  40. The net result is as if you had 64 color registers where the colors in the
  41. top 32 were "half-intensity" counterparts of the colors in the bottom 32!
  42.  
  43. Of course, that means there is a dependency between the choice of colors in
  44. the 32 real registers and the resulting colors in the 32 psuedo-registers.
  45. Nevertheless, I assert we have as much right to claim 64 colors on screen
  46. as IBM has to claim 16 colors from a monitor that is physically capable of
  47. producing only 8 colors at 2 intensities!  At least we can select our 32
  48. colors out of a pallatte of 4096!
  49.  
  50. Note also that, since fractional color components have no meaning in the
  51. hardware, there are several distinct real colors that produce the same
  52. extra color.  For instance (in hex):
  53.  
  54.   888 --> 444,    988 --> 444,   898 --> 444,   999 --> 444,  etc.
  55.  
  56. Despite all this quibbling, with a little thought it's easy to see how you
  57. can choose a set of 32 real colors to make sure all 64 real plus extra
  58. colors are distinct.  And they are every-pixel-addressable!
  59.  
  60. Why have we kept this little jewel a secret?  No, it's not that we were
  61. planning to lull the competition into complacency and then spring an
  62. instant double of the Amiga's color capacity on them.
  63.  
  64. Not all Amiga 1000s have Extra Half Bright mode.  All Amiga 500s and 2000s
  65. have it.
  66.  
  67. This revision of the Amiga chipset occurred after the Amiga Hardware manual
  68. was written, so it is not discussed there.  Note that you can't hurt
  69. anything by running such a program on an older machine -- the values in the
  70. 6th bit plane will simply be ignored.  Color printing of Extra Half Bright
  71. mode should work on AmigaDOS 1.1 and 1.2.
  72.  
  73. This sample program shows Extra-Half-Brite mode in operation.
  74.  
  75.  *  Dale Luck    -- October, 1985
  76.  *  Bob Pariseau -- November 8, 1985  (Editorial changes)
  77.  *  John Foust   -- June 29, 1987 (more edits and updates)
  78.  
  79.